package com.blt.govdata.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.blt.govdata.mapper.TSysMenuMapper;
import com.blt.govdata.model.TSysMenu;
import com.blt.govdata.model.vo.TSysMenuVo;
import com.blt.govdata.service.ITSysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 * @author AustinGJ123
 * @since 2018-03-26
 */
@Service
public class TSysMenuServiceImpl extends ServiceImpl<TSysMenuMapper, TSysMenu> implements ITSysMenuService {

    @Autowired
    private TSysMenuMapper mapper;


    public TSysMenuVo selectVoById(String id) throws Exception {
        return null;
    }

    public Page<TSysMenuVo> selectVoPage(Map<String, Object> paramMap) throws Exception {
        //todo
        return null;
    }

    @Override
    public List<TSysMenuVo> selectVoMenusByPid(Map<String, Object> params) {
        return this.mapper.selectVoMenusByPid(params);
    }

    @Override
    public List<TSysMenuVo> selectUserMenus(Map<String, Object> params) {
        return this.mapper.selectUserMenus(params);
    }

    @Override
    public List<TSysMenuVo> selectRoleMenus(Map<String, Object> params) {
        return this.mapper.selectRoleMenus(params);
    }
}
